<script>
export default {
	onLaunch: function () {
		console.log('App Launch');
		uni.setStorageSync('address', { value: '西安市' });
		uni.removeStorageSync('activity');
		uni.removeStorageSync('city');
		uni.removeStorageSync('communityID');
		const systemInfo = uni.getSystemInfoSync();
		uni.setStorageSync('statusBarHeight', uni.getSystemInfoSync().statusBarHeight);
		let menuButtonInfo = uni.getMenuButtonBoundingClientRect();
		uni.setStorageSync('rightIcon', menuButtonInfo.width + 10);
		uni.setStorageSync('topIcon', menuButtonInfo.top);
	},
	onShow: function () {
		console.log('App Show');
		const updateManager = uni.getUpdateManager();
		updateManager.onUpdateReady(function (res) {
			uni.showModal({
				title: '更新提示',
				content: '新版本已经准备好，是否重启应用？',
				showCancel: true,
				success(res) {
					if (res.confirm) {
						uni.clearStorageSync();
						updateManager.applyUpdate();
					}
				}
			});
		});
	},
	onHide: function () {
		console.log('App Hide');
	}
};
</script>

<style lang="scss">
/*每个页面公共css */
::-webkit-scrollbar {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
}
.uni-tabbar {
	border: none !important;
}
.uni-calendar{
	.uni-datetime-picker--btn{
		background-color:#d8c6a7;
		color: #75613e;
	}
	.uni-calendar-item__weeks-box .uni-calendar-item--checked{
		background-color:#d8c6a7;
	}
	.uni-calendar-item--multiple .uni-calendar-item--before-checked,.uni-calendar-item--multiple .uni-calendar-item--after-checked{
		background-color:#d8c6a7;
	}
	.uni-calendar-item--before-checked .uni-calendar-item--checked-text, .uni-calendar-item--after-checked .uni-calendar-item--checked-text{
		color: #75613e;
	}
}
.zt-pending {
	color: #75613E !important;
}
.zt-approved {
	color: #8F8F8B !important;
}
.zt-rejected {
	color: #892B1B !important;
}
.input_text {
	color: #dadada;
}
.input_text_s {
	color: #aeaeac;
}
/*每个页面公共css */
.flex {
	display: flex;
	align-items: center;
}
.flex_jc_sb {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.flex_jc_cent {
	display: flex;
	justify-content: center;
	align-items: center;
}
input,
textarea {
	color: #000;
}
@font-face {
	font-family: 'DIN-BOLD';
	src: url('/utils/DIN-Bold.otf');
	font-weight: normal;
	font-style: normal;
}
.globalKong {
	width: 360rpx;
	margin: 128rpx auto;
	image {
		width: 360rpx;
		height: 232rpx;
	}
	.text {
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 24rpx;
		color: #979797;
		margin-top: 50rpx;
		text-align: center;
	}
}

.globalPopup {
	width: 620rpx;
	background: #ffffff;
	border-radius: 20rpx 20rpx 20rpx 20rpx;
	padding: 60rpx 40rpx 30rpx 40rpx;
	box-sizing: border-box;
	position: relative;
	.close {
		position: absolute;
		right: 30rpx;
		top: 30rpx;
	}
	.title {
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 32rpx;
		color: #1b1b1b;
		text-align: center;
	}
	.content {
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #1b1b1b;
		margin: 45rpx auto 50rpx;
		text-align: center;
	}
	.template {
		margin: 45rpx auto;
	}
	.btns {
		margin: 0rpx auto;
		.bt {
			width: 260rpx;
			height: 72rpx;
			border-radius: 40rpx 40rpx 40rpx 40rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			font-size: 28rpx;
			text-align: center;
			line-height: 72rpx;
		}
		.b1 {
			background: #f9f9f9;
			color: #d1cdcd;
		}
		.b2 {
			background: #d8c6a7;
			color: #75613e;
		}
	}
}
.btn_zw {
	height: 140rpx;
	padding-bottom: constant(safe-area-inset-bottom);
	padding-bottom: env(safe-area-inset-bottom);
}
.bottom_btns {
	width: 750rpx;
	min-height: 120rpx;
	background: #f7f7f7;
	box-shadow: 0rpx 1px 10rpx 0rpx rgba(0, 0, 0, 0.2);
	position: fixed;
	bottom: 0%;
	padding-bottom: constant(safe-area-inset-bottom);
	padding-bottom: env(safe-area-inset-bottom);
	z-index: 9;
	.cont {
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		min-height: 120rpx;
		color: #000000;
		box-sizing: border-box;
		display: flex;
		justify-content: space-between;
		padding: 0rpx 20rpx;
		align-items: center;
		.cont_left {
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			font-size: 28rpx;
			color: #aeaeae;
			position: relative;
			.zf_btns {
				width: 60rpx;
				height: 60rpx;
				position: absolute;
				top: 0%;
				opacity: 0;
			}
		}
		.btns {
			width: 400rpx;
			height: 80rpx;
			background: #d8c6a7;
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			font-size: 30rpx;
			color: #75613e;
			line-height: 80rpx;
			text-align: center;
			border-radius: 40rpx;
		}

		.onebtns {
			width: 710rpx;
			height: 80rpx;
			background: #eee8d8;
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			font-size: 30rpx;
			color: #d8c6a7;
			line-height: 80rpx;
			text-align: center;
			border-radius: 40rpx;
		}
		.active {
			background: #d8c6a7 !important;
			color: #75613e !important;
		}
		.ac{
			background: #D1D1D6 !important;
			color: #FFFFFF !important;
		}
	}
}
</style>
